﻿//-------------------------------------------------------------------------------------------
// <copyright file="ServerElement.cs"  company="Russell Wilkins">
//     Copyright (c) Russell Wilkins 2014. All Rights Reserved.
// </copyright>
// <author>Russell Wilkins</author>
// <license href="license.txt">
//     The use of this software is governed by the Microsoft Public License
//     which is included with this distribution.
// </license>
//-------------------------------------------------------------------------------------------
namespace Ripple.Configuration
{
    using System.Configuration;

    internal class ServerElement : ConfigurationElement
    {
        [ConfigurationProperty("address", DefaultValue = "localhost")]
        public string Address
        {
            get
            {
                return (string)this["address"];
            }

            set
            {
                this["address"] = value;
            }
        }

        [ConfigurationProperty("port", DefaultValue = 8088)]
        public int Port
        {
            get
            {
                return (int)this["port"];
            }

            set
            {
                this["port"] = value;
            }
        }
    }
}